package com.oms.web.form;

import java.io.Serializable;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;


public class ChangePasswordForm implements Serializable{


	/**
	 * 
	 */
	private static final long serialVersionUID = -105390455666306689L;

	@NotEmpty(message="不能为空")
	@Length(min=6,max=16,message="密码长度要在6到16位之间")
	@Pattern(regexp="\\w*",message="只能输入大小写字母和数字")
	String oldPassword;
	
	@NotEmpty(message="不能为空")
	@Length(min=6,max=16,message="密码长度要在6到16位之间")
	@Pattern(regexp="\\w*",message="只能输入大小写字母和数字")
	String newPassword1;
	
	@NotEmpty(message="不能为空")
	@Length(min=6,max=16,message="密码长度要在6到16位之间")
	@Pattern(regexp="\\w*",message="只能输入大小写字母和数字")
	String newPassword2;

	
	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	public String getNewPassword1() {
		return newPassword1;
	}

	public void setNewPassword1(String newPassword1) {
		this.newPassword1 = newPassword1;
	}

	public String getNewPassword2() {
		return newPassword2;
	}

	public void setNewPassword2(String newPassword2) {
		this.newPassword2 = newPassword2;
	}
}
